package com.info33.platform.common.constant;

/**
 * @author debj
 * @version 1.0
 * @date 2021/7/26 15:21
 */
@SuppressWarnings("unused")
public class TableConstant {

    public static final String ID = "id";
    public static final String UUID = "uuid";
    public static final String SORT = "sort";
    public static final String STATUS = "status";
    public static final String REMARKS = "remarks";
    public static final String VERSION = "version";
    public static final String TENANT_ID = "tenant_id";
    public static final String CREATE_BY = "create_by";
    public static final String UPDATE_BY = "update_by";
    public static final String CREATE_DATE = "create_date";
    public static final String UPDATE_DATE = "update_date";

    /**
     * 父 id 字段名
     */
    public static final String PID = "pid";

    /**
     * 新增租户时默认索引
     */
    public static final String NEW_TENANT_INDEX = "default";

    /**
     * 状态值，逻辑真
     */
    public static final Integer STATUS_TRUE = 1;

    /**
     * 状态值，逻辑假
     */
    public static final Integer STATUS_FALSE = 0;

    /**
     * 状态值，未知
     */
    public static final Integer STATUS_UNTREATED = -1;

    /**
     * 限制一条
     */
    public static final String LIMIT_ONE = "limit 1";

    /**
     * 英文逗号
     */
    public static final String COMMA = ",";

    private TableConstant() {
    }
}
